package ouyangye.person;

public class Human implements Action {

    private String name; // 姓名


    public Human() {

    }

    public Human(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }


    @Override
    public void work() {
        System.out.println(name + "正在工作");
    }

    @Override
    public void eat() {
        System.out.println(name + "正在吃饭");
    }

    @Override
    public void sleep() {
        System.out.println(name + "正在睡觉");
    }

    @Override
    public void charge() {
        System.out.println(name + "无需充电");
    }

}